package org.ichow.scenegame.events
{
	import flash.events.Event;

	/**
	 * ...
	 * @author M.ichow
	 */
	public class SceneEvent extends Event
	{
		public static const MOVIE_LOAD:String = "movieLoad";
		public static const MOVIE_LOADING:String = "movieLoading";
		public static const MOVIE_LOADED:String = "movieLoaded";
		public static const MOVIE_END:String = "movieEnd";
		
		public static const ADD_TO_SCENE:String = "addToScene";
		
		public static const INIT_GAME : String = "initGame";
		public static const PLAY_GAME : String = "playGame";
		public static const GAME_OVER : String = "gameOver";
		public static const UPDATE_END:String = "updateEnd";
		
		public var data : Object;

		public function SceneEvent( type : String , theData : Object = null , bubbles : Boolean = false , cancelable : Boolean = false )
		{
			super( type , bubbles , cancelable );
			data = theData;
		}

		override public function clone() : Event
		{
			return new SceneEvent( type , data , bubbles , cancelable );
		}

	}

}